package bilby;

/**
 * 猫
 *
 * @author Tght
 * @date 2022/10/19
 */
public class Cat
{
    // Each animal will have a unique identification code,
    // a location,
    // and a status
    private String code;
    private boolean aliveStatus;

    private String localtion;
    private boolean isNewBorn;
    // The health status of foxes and cats will start at 3.
    // Fox and cat health will start at 3
    private int healthStatus;

    /**
     * age > 6 can reproduce
     */
    private int age;

    public Cat()
    {
        code = "";
        aliveStatus = true;
        isNewBorn = false;
        healthStatus = 3;
        localtion="";
        age = 0;
    }

    public Cat(String code, boolean aliveStatus, String localtion, boolean isNewBorn, int healthStatus, int age) {
        this.code = code;
        this.aliveStatus = aliveStatus;
        this.localtion = localtion;
        this.isNewBorn = isNewBorn;
        this.healthStatus = healthStatus;
        this.age = age;
    }

    public String getCode()
    {
        return code;
    }

    public boolean isAliveStatus()
    {
        return aliveStatus;
    }

    public boolean isNewBorn()
    {
        return isNewBorn;
    }

    public int getHealthStatus()
    {
        return healthStatus;
    }

    public String getLocaltion() {
        return localtion;
    }

    public int getAge() {
        return age;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public void setAliveStatus(boolean aliveStatus)
    {
        this.aliveStatus = aliveStatus;
    }

    public void setNewBorn(boolean newBorn)
    {
        isNewBorn = newBorn;
    }

    public void setHealthStatus(int healthStatus)
    {
        this.healthStatus = healthStatus;
    }

    public void setLocaltion(String localtion) {
        this.localtion = localtion;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "code='" + code + '\'' +
                ", aliveStatus=" + aliveStatus +
                ", localtion='" + localtion + '\'' +
                ", isNewBorn=" + isNewBorn +
                ", healthStatus=" + healthStatus +
                ", age=" + age +
                '}';
    }
}
